package com.bottle.mode;

import lombok.Data;

import java.util.Set;

/**
 * @author: chenyuncong
 * @Date: 2020/4/29 17:34
 */
@Data
public class UserInfo {
    //用户id
    private String userId;
    //用户名字
    private String name;
    //用户对应的组群
    private Set<String> encryptionIds;
    //登录时间
    private Long loginTime;
    //最后发消息的时间
    private Long lastSendTime;
    //是否需要更新之前的信息

    //1小时内

    public boolean checkBridgeId(String bridgeIds){
        return encryptionIds.contains(bridgeIds);
    }
}
